<!--js-->
<script type="text/javascript" src="{%$rootdir%}js/float.js"></script>
<link href="{%$rootdir%}public/plug/im/im_public.css" rel="stylesheet" type="text/css" />
{%if $call.call_style==1%}
<link href="{%$rootdir%}public/plug/im/sky.css" rel="stylesheet" type="text/css" />
{%elseif $call.call_style==2%}
<link href="{%$rootdir%}public/plug/im/green.css" rel="stylesheet" type="text/css" />
{%elseif $call.call_style==3%}
<link href="{%$rootdir%}public/plug/im/purple.css" rel="stylesheet" type="text/css" />
{%elseif $call.call_style==4%}
<link href="{%$rootdir%}public/plug/im/yellow.css" rel="stylesheet" type="text/css" />
{%elseif $call.call_style==5%}
<link href="{%$rootdir%}public/plug/im/red.css" rel="stylesheet" type="text/css" />
{%elseif $call.call_style==6%}
<link href="{%$rootdir%}public/plug/im/black.css" rel="stylesheet" type="text/css" />
{%/if%}
<!--end_js-->
{%if $call.call_type==1%}
<div id="right-float-box" class="im_floatonline">
	<div class="float-box-content">
		<div class="toptitle">{%$lngpack.call_title%}</div>
		<div class="addlist">
			<ul>
				{%forlist from=$array key=i%}
					{%if $array[i].type==4%}
						<li class="displaynone">{%$array[i].code|htmlcode(1)%}</li>
					{%else%}
						{%if $array[i].istype==1%}
							<li>
								{%if $array[i].type==1%}
								<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={%$array[i].code%}&site=qq&menu=yes"><img border="0" src="{%$rootdir%}{%$array[i].pic%}"/></a>
								{%elseif $array[i].type==2%}
								<a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid={%$array[i].code%}&site=cntaobao&s=1&charset=utf-8"><img border="0" src="{%$rootdir%}{%$array[i].pic%}"/></a>
								{%elseif $array[i].type==3%}
								<a target="_blank" href="http://amos1.sh1.china.alibaba.com/msg.atc?v=1&uid={%$array[i].code%}"><img border="0" src="{%$rootdir%}{%$array[i].pic%}"/></a>
								{%/if%}
							</li>
						{%else%}
							{%if $array[i].type==1%}
								{%if $array[i].style==1 || $array[i].style==0 %}
									<li>{%$array[i].name%} <br/> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={%$array[i].code%}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{%$array[i].code%}:52" alt="点击这里给我发消息" title="点击这里给我发消息"/></a></li>
								{%elseif $array[i].style==2%}
									<li>{%$array[i].name%} <br/> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={%$array[i].code%}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{%$array[i].code%}:51" alt="点击这里给我发消息" title="点击这里给我发消息"/></a></li>
								{%elseif $array[i].style==3%}
									<li>{%$array[i].name%} <br/> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={%$array[i].code%}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{%$array[i].code%}:53" alt="点击这里给我发消息" title="点击这里给我发消息"/></a></li>
								{%/if%}
							{%elseif $array[i].type==2%}
								{%if $array[i].style==1 || $array[i].style==0 %}
								<li>{%$array[i].name%} <br/> <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid={%$array[i].code%}&site=cntaobao&s=1&charset=utf-8" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid={%$array[i].code%}&site=cntaobao&s=1&charset=utf-8"/></a></li>
								{%elseif $array[i].style==2%}
								<li>{%$array[i].name%} <br/> <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid={%$array[i].code%}&site=cntaobao&s=2&charset=utf-8" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid={%$array[i].code%}&site=cntaobao&s=2&charset=utf-8"/></a></li>
								{%/if%}
							{%elseif $array[i].type==3%}
								{%if $array[i].style==102%}
								<li>{%$array[i].name%} <br/> <a target="_blank" href="http://amos1.sh1.china.alibaba.com/msg.atc?v=1&uid={%$array[i].code%}"><img border="0" src="http://amos1.sh1.china.alibaba.com/online.atc?v=1&uid={%$array[i].code%}&s=102"></a></li>
								{%elseif $array[i].style==101%}
								<li>{%$array[i].name%} <br/> <a target="_blank" href="http://amos1.sh1.china.alibaba.com/msg.atc?v=1&uid={%$array[i].code%}"><img border="0" src="http://amos1.sh1.china.alibaba.com/online.atc?v=1&uid={%$array[i].code%}&s=101"></a></li>
								{%elseif $array[i].style==1 || $array[i].style==0 %}
								<li>{%$array[i].name%} <br/> <a target="_blank" href="http://amos1.sh1.china.alibaba.com/msg.atc?v=1&uid={%$array[i].code%}"><img border="0" src="http://amos1.sh1.china.alibaba.com/online.atc?v=1&uid={%$array[i].code%}&s=1"></a></li>
								{%elseif $array[i].style==2%}
								<li>{%$array[i].name%} <br/> <a target="_blank" href="http://amos1.sh1.china.alibaba.com/msg.atc?v=1&uid={%$array[i].code%}"><img border="0" src="http://amos1.sh1.china.alibaba.com/online.atc?v=1&uid={%$array[i].code%}&s=2"></a></li>
								{%/if%}
							{%/if%}
						{%/if%}
					{%/if%}
				{%/forlist%}
			</ul>
		</div>
		<div class="serverbotton">
			<ul>
				<li><a class="button blue" href="{%$memberlink%}">{%$lngpack.call_form_botton%}</a></li>
				<li><a class="button red" href="javascript:closeim();">{%$lngpack.close_im%}</a></li>
				{%if $wxread.filename%}
				<li><img src="{%$wxread.filename|zoom(120,120,'',3)%}"</li>
				{%/if%}
			</ul>
		</div>
	</div>
</div>
{%/if%}
{%if $call.call_type==2%}
<div id="float-bottom" class="im_floatonline">
	<div class="right" id="callstr">
		<img src="{%$rootpath%}images/im_botton.png">
	</div>
	<div class="float-box-content">
		<div class="toptitle">{%$lngpack.call_title%}</div>
		<div class="addlist">
			<ul>
				{%forlist from=$array key=i%}
					{%if $array[i].type==4%}
						<li class="displaynone">{%$array[i].code|htmlcode(1)%}</li>
					{%else%}
						{%if $array[i].istype==1%}
							<li>
								{%if $array[i].type==1%}
								<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={%$array[i].code%}&site=qq&menu=yes"><img border="0" src="{%$rootdir%}{%$array[i].pic%}"/></a>
								{%elseif $array[i].type==2%}
								<a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid={%$array[i].code%}&site=cntaobao&s=1&charset=utf-8"><img border="0" src="{%$rootdir%}{%$array[i].pic%}"/></a>
								{%elseif $array[i].type==3%}
								<a target="_blank" href="http://amos1.sh1.china.alibaba.com/msg.atc?v=1&uid={%$array[i].code%}"><img border="0" src="{%$rootdir%}{%$array[i].pic%}"/></a>
								{%/if%}
							</li>
						{%else%}
							{%if $array[i].type==1%}
								{%if $array[i].style==1 || $array[i].style==0 %}
									<li>{%$array[i].name%} <br/> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={%$array[i].code%}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{%$array[i].code%}:52" alt="点击这里给我发消息" title="点击这里给我发消息"/></a></li>
								{%elseif $array[i].style==2%}
									<li>{%$array[i].name%} <br/> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={%$array[i].code%}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{%$array[i].code%}:51" alt="点击这里给我发消息" title="点击这里给我发消息"/></a></li>
								{%elseif $array[i].style==3%}
									<li>{%$array[i].name%} <br/> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={%$array[i].code%}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{%$array[i].code%}:53" alt="点击这里给我发消息" title="点击这里给我发消息"/></a></li>
								{%/if%}
							{%elseif $array[i].type==2%}
								{%if $array[i].style==1 || $array[i].style==0 %}
								<li>{%$array[i].name%} <br/> <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid={%$array[i].code%}&site=cntaobao&s=1&charset=utf-8" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid={%$array[i].code%}&site=cntaobao&s=1&charset=utf-8"/></a></li>
								{%elseif $array[i].style==2%}
								<li>{%$array[i].name%} <br/> <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid={%$array[i].code%}&site=cntaobao&s=2&charset=utf-8" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid={%$array[i].code%}&site=cntaobao&s=2&charset=utf-8"/></a></li>
								{%/if%}
							{%elseif $array[i].type==3%}
								{%if $array[i].style==102%}
								<li>{%$array[i].name%} <br/> <a target="_blank" href="http://amos1.sh1.china.alibaba.com/msg.atc?v=1&uid={%$array[i].code%}"><img border="0" src="http://amos1.sh1.china.alibaba.com/online.atc?v=1&uid={%$array[i].code%}&s=102"></a></li>
								{%elseif $array[i].style==101%}
								<li>{%$array[i].name%} <br/> <a target="_blank" href="http://amos1.sh1.china.alibaba.com/msg.atc?v=1&uid={%$array[i].code%}"><img border="0" src="http://amos1.sh1.china.alibaba.com/online.atc?v=1&uid={%$array[i].code%}&s=101"></a></li>
								{%elseif $array[i].style==1 || $array[i].style==0 %}
								<li>{%$array[i].name%} <br/> <a target="_blank" href="http://amos1.sh1.china.alibaba.com/msg.atc?v=1&uid={%$array[i].code%}"><img border="0" src="http://amos1.sh1.china.alibaba.com/online.atc?v=1&uid={%$array[i].code%}&s=1"></a></li>
								{%elseif $array[i].style==2%}
								<li>{%$array[i].name%} <br/> <a target="_blank" href="http://amos1.sh1.china.alibaba.com/msg.atc?v=1&uid={%$array[i].code%}"><img border="0" src="http://amos1.sh1.china.alibaba.com/online.atc?v=1&uid={%$array[i].code%}&s=2"></a></li>
								{%/if%}
							{%/if%}
						{%/if%}
					{%/if%}
				{%/forlist%}
			</ul>
		</div>
		<div class="serverbotton">
			<ul>
				<li><a class="button blue" href="{%$memberlink%}">{%$lngpack.call_form_botton%}</a></li>
				<li><a class="button red" href="javascript:closeim();">{%$lngpack.close_im%}</a></li>
				{%if $wxread.filename%}
				<li><img src="{%$wxread.filename|zoom(120,120,'',3)%}"</li>
				{%/if%}
			</ul>
		</div>
	</div>
</div>
{%/if%}
<script type="text/javascript">
	var imcookies = cookie('ImisCloseType');
	if (imcookies){
		$('#right-float-box').removeClass().addClass('displaynone');
		$('#float-bottom').removeClass().addClass('displaynone');
	}
	{%if $call.call_type==1%}
	{%if $call.call_position==1%}
	$("#right-float-box").float({position:"lm",delay:500});
	{%else%}
	$("#right-float-box").float({position:"rm",delay:500});
	{%/if%}
	{%/if%}
	{%if $call.call_type==2%}
	$("#float-bottom").float({position:"lm",offset : {left : -160},style:{width:210}});
	$("#float-bottom").hover(function(){
		$("#callstr").fadeOut("normal");
		$(this).float("clearOffset");
	},function(){
		$("#callstr").fadeIn("normal");
		$(this).float("addOffset");
	})
	{%/if%}
</script>